import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'

export function getToken() {
  return Cookies.get(TokenKey)
}
export function getCookie(name) {
  return Cookies.get(name)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}
export function setTokenBykey(key, token) {
  return Cookies.set(key, token)
}

export function removeToken() {
  // 移除商户
  Cookies.remove("user_id");
  return Cookies.remove(TokenKey)

}

